package com.kgc.scd.service.impl;

import com.kgc.scd.bean.User;
import com.kgc.scd.mapper.UserMapper;
import com.kgc.scd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created On : 2022/6/15.
 * <p>
 * Author     : hi
 * <p>
 * Description: UserServiceImpl
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    private UserMapper userMapper;

    @Override
    public User selectUserCredit(String user) {
        return userMapper.selectUserCredit(user);
    }

    @Override
    public void updateCredit(User user) {
        userMapper.updateByPrimaryKeySelective(user);
    }

    @Override
    public User selectall(String userId) {
        return userMapper.selectByPrimaryKey(userId);
    }
}
